// -----------------------------------------------------------------------
//  <copyright file="AspModuleBase.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2022 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2022-11-05 12:28</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Builder;


namespace DaprPlus.AspNetCore;

/// <summary>
/// 基于AspNetCore环境的模块基类
/// </summary>
public abstract class AspModuleBase : ModuleBase
{
    /// <summary>
    /// 应用AspNetCore的服务业务
    /// </summary>
    /// <param name="app">Web应用程序</param>
    public virtual Task UseModule(WebApplication app)
    {
        var provider = app.Services;
        return base.UseModule(provider);
    }
}
